module.exports = {
  // service port
  port: 80,

  // mongodb config
  proDatabase: {
    gigs: 'mongodb://43.239.158.182/chat',
    // tencent:'mongodb://119.29.21.17/chatroom'
    tencent: 'mongodb://pengliheng:ewqewq@119.29.21.17:27017/chatroom',
  },
  devDatabase: 'mongodb://127.0.0.1/chatroom',

  // mongo --port 27017 -u pengliheng -p 'ewqewq' --authenticationDatabase 'admin'


  // jwt encryption secret
  secret: 'jwt',

  // default Room
  defaultRoom: 'MoonLight',

  // qiniu CDN config.
  // 七牛CDN配置
  // optional, and if you do not have the configuration, the file will be saved on the local disk
  // 选填, 如果你没有配置, 文件会保存在本地磁盘上
  accessKey: 'qiniu_access_key',
  secretKey: 'qiniu_secret_key',
  bucket: 'bucket_name',
  bucketUrl: 'bucket_url',

  // Maximum message length
  // 消息最大长度
  maxMessageLength: 1024,

  // Maximum number of groups that can be created by each user
  // 每个用户最多可以创建的群组个数
  maxGroupNumber: 2,

  // New users use random avatars. You need to install ImageMagick first
  // 新建用户使用随机头像, 需要先安装ImageMagick
  useRandomAvatar: false,

  // Default group avatar url.
  // 默认群组头像链接
  defaultGroupAvatar: 'https://assets.suisuijiang.com/group_avatar_default.jpeg',
  // Default user avatar url. If use random avatar, you do not need this configuration
  // 默认用户头像链接, 如果使用随机头像则不需要该项配置
  defaultUserAvatar: 'https://assets.suisuijiang.com/group_avatar_default.jpeg',
};
